{{extend './comment.html'}}
<!--  -->

{{block 'head'}}
<title>ZhiLiao</title>
<!-- 添加 app.html  的样式 -->
<link rel="stylesheet" href="/public/css/app.css" />

<link
  rel="stylesheet"
  href="../node_modules/bootstrap/dist/css/bootstrap.min.css"
/>

{{/block}}

<!--  -->
{{block 'content'}}
<div class="content">
  <!-- 添加/发表博客 -->
  <div class="publish">
    <h1>发布点新鲜事儿 <span> 分享你的所见与所闻</span></h1>
  </div>

  <div class="publish-btn">
    <a href="/post" class="pub_blog">发布Blog</a>
  </div>

  <div class="message-ul">
    <ul>
      <!-- 渲染评论  引擎模板-->
      {{each message}}
      <li>
        <h4 class="title">{{ $value.title }}</h4>
        <p class="message-content">{{ $value.message }}</p>

        <div class="li-bottom">
          <a href="javascript:;" class="user" title="{{$value.username}}"
            >{{ $value.nickname }}</a
          >

          <span href="javascript:;" class="dateTime"
            >{{ $value.dateTime }}</span
          >

          <a href="javascript:;" class="zan">赞<span>(1)</span></a>

          <a href="javascript:;" class="pinglun">评论(1)</a>
        </div>
      </li>
      {{/each}}
    </ul>
  </div>

  <!-- 留言内容部分 -->
</div>

{{/block}} {{block 'script'}} {{/block}}
